﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace Reconciliation.Web.Users_Control
{
    public partial class ExpectedReturn : System.Web.UI.UserControl
    {
        public int orderId;
        public int OrderID
        {
            get
            {
                return orderId;
            }
            set
            {
                orderId = value;
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            string s = Request.QueryString["OrderID"];
            OrderID = int.Parse(s);

            BindGrid();
        }

        private void BindGrid()
        {
            RadGridExpectedReturn.DataSource = Services.Services.GetExpectedReturn(OrderID);
            RadGridExpectedReturn.DataBind();           
        }
    }
}